import request from '@/utils/request'

export const getList = params => {
    return request({
        url: '/SeriesRAPI/Message/GetList',
        method: 'get',
        params: params
    })
}

export const clear = () => {
    return request({
        url: '/SeriesRAPI/Message/ClearUnRead',
        method: 'post',
    })
}

export const getMessageById = id => {
    return request({
        url: `/SeriesRAPI/Message/${id}`,
        method: 'get',
    })
}

export const getCount = () => {
    return request({
        url: `/SeriesRAPI/Message/Count`,
        method: 'get',
    })
}